/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.blog.city.checkthedep.sessionbeans;

import com.blog.city.checkthedep.entities.Comment;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Breath
 */
@Local
public interface CommentFacadeLocal {

    /**
     * 
     * @param comment
     */
    void create(Comment comment);

    /**
     * 
     * @param comment
     */
    void edit(Comment comment);

    /**
     * 
     * @param comment
     */
    void remove(Comment comment);

    /**
     * 
     * @param id
     * @return
     */
    Comment find(Object id);

    /**
     * 
     * @return
     */
    List<Comment> findAll();

    /**
     * 
     * @param range
     * @return
     */
    List<Comment> findRange(int[] range);

    /**
     * 
     * @return
     */
    int count();

    public java.util.List<com.blog.city.checkthedep.entities.Comment> findByRegUserId(com.blog.city.checkthedep.entities.RegisteredUser regId);
    
}
